package com.espirit.eap.manager;

import java.util.List;

import org.springframework.stereotype.Service;

@Service
public class EapI18nData extends I18nData {

	@Override
	protected void setData() {
		buildFrameworkI18nData();
		
		
		addI18n( "sysLog.content", "Log", "备注");
		addI18n("action.changePassword", "Change Password", "修改密码");
		
		addI18n( "site.espirit", "HR", "HR");
		addI18n( "site.login", "Human Resource Management System", "人力资源管理系统");
		addI18n( "site.login.desc", "Anywhere Anytime", "Anywhere Anytime");
		
		addI18n("model.espirit.department.newDepart", "New Department", "新部门");
		
		
		addI18n("module.common", "Common", "公共");
		addI18n("module.process", "Process", "审批");
		addI18n("module.eap", "System", "系统");
		addI18n("module.others", "Other", "其它");
		
		addI18n("module.operation", "Operation", "运营");
		addI18n("module.hr", "HR", "人力运营");
		
		addI18n("module.permissionfilter", "Permission Filter", "权限过滤");
		
		addI18n( "commons.eventItem.canntAllocateQty", "Item Accept or Reject Status cannt AllocateQty!", "批准或拒绝状态的Item不能分配数量!");
		addI18n( "commons.eventItem.canntGenerateSalesOrder", "Item Accept or Reject Status cannt Generate SalesOrder!", "批准或拒绝状态的Item不能生成销售单!");
		addI18n( "commons.eventId", "凭证ID", "Order Id");
		addI18n( "commons.onlyOneRecordPermit", "You Should Select Only One Record Continue", "只能选中一条记录处理");
		addI18n( "commons.wf.waitingAccept", "Ledger Waiting Approving", "凭证批准请求");
		
		addI18n("common.entity", "Entity", "实体");
		
		addI18n("common.file.print.fileNotExists", "The Related Print template xls file not exists ,please check", "对应的打印模板Excel文件不存在，请检查");

		
		addI18n( "errors.wf.noTemplate", "This Ledger Related Workflow Template has not Defined! please difine[manager-->define-->Workflow Template/Workflow Phase]", "该凭证对应的工作流模板没有定义，请先定义[管理-->定义-->批准模板/批准阶段]");
		addI18n( "errors.event.refered", "The Order has been Refered Or in Accepting Status!", "该单据已经提交或处于审批状态,不能重复提交!");
		addI18n( "errors.event.forbidUpdate", "The Order has been Refered Or in Accepting Status,Update forbidden!", "该单据已经提交或处于审批状态,不能修改!");
		

	}
	
	public List<I18n> getI18nData() {
		return list;
	}

	public void buildFrameworkI18nData() {
		// common information
		addI18n( "commons.loading", "Loading", "加载中");
		addI18n( "commons.all", "All", "所有");
		addI18n( "", "", "");			// commons.empty
		addI18n( "commons.select", "Please select", "请选择");
		addI18n( "common.category", "Module", "模块");
		addI18n( "common.method", "Method", "方法");
		addI18n( "common.simpleSearch", "Simple Search", "简单查询");
		addI18n( "common.list", "Search List", "列表");
		addI18n( "common.advancedSearch", "Advance Search", "高级查询");
		addI18n( "action.operation", "Operation", "操作");
		addI18n( "action._add", "Add", "添加");
		addI18n( "action.add", "Add", "添加");
		addI18n( "action._update", "Update", "修改");
		addI18n( "action.update", "Update", "修改");
		addI18n( "action._search", "Search", "查询");
		addI18n( "action.search", "Search", "查询");
		addI18n( "action.export", "Export", "导出");
		addI18n( "action.cancel", "Cancel", "取消");
		addI18n( "action.view", "View", "查看");
		addI18n( "action.delete", "Delete", "删除");
		addI18n( "action._delete", "Delete", "删除");
		addI18n( "action.deleteList", "Delete", "删除");
		addI18n( "action.execute", "Execute", "执行");
		addI18n( "action.refresh", "Refresh", "刷新");
		addI18n( "action.save", "Save", "保存");
		addI18n( "action.login", "Login", "登录");
		addI18n( "action.needToCall", "Call", "电话");
		addI18n( "action.print", "Print", "打印");
		addI18n( "action._importFile", "Import", "导入");
		addI18n( "action._batchAdd", "Batch Add", "批量新增");
		addI18n( "action.report", "Print", "打印");
		addI18n( "action.printPreview", "Print Preview", "打印预览");
		addI18n( "action._goNext", "GoNext", "提交");
		addI18n( "action._approve", "Approve", "审核");
		addI18n( "action.back", "Back", "退回");
		addI18n( "action.close", "Close", "关闭");
		addI18n( "action.addToCar", "AddToCar", "加入蓝");
		
		addI18n( "action.addToMatch", "Add To Match", "加入匹配");
		addI18n( "action.backMenu", "Back to Menu", "返回菜单");
		addI18n( "action.reset", "Reset", "重置");
		addI18n( "action.undo", "Undo", "撤销");
		addI18n( "action.redo", "Redo", "重做");
		addI18n( "action.applyTemplate", "Apply Template", "应用模板");
		
		addI18n( "commons.search", "Search", "查询");
		addI18n( "commons.noRecord", "No Record", "无记录");
		addI18n( "commons.logout", "logout", "退出");
		addI18n( "commons.smartSearch", "SmartSearch", "智能查询");
		addI18n( "commons.webSearch", "Web Search", "网上查询");
		addI18n( "commons.menu", "Menu", "菜单");
		addI18n( "commons.add", "Add", "新增");
		addI18n( "commons.copy", "Copy", "复制");
		addI18n( "commons.success", "Operation Success", "操作成功");
		addI18n( "commons.update", "Update", "修改");
		addI18n( "commons.delete", "Delete", "删除");
		addI18n( "commons.deleteConfirm", "Are you sure delete the selected record?", "你确定要删除选中的记录吗?");
		addI18n( "commons.restoreConfirm", "Are you sure restore the system setting?", "你确定要恢复系统设置吗?");
		addI18n( "commons.back", "Back", "退回");
		addI18n( "commons.ok", "OK", "确认");
		addI18n( "commons.not", "NO", "否");
		addI18n( "commons.cancel", "Cancel", "取消");
		addI18n( "commons.backConfirm", "Are you sure back the selected record?", "你确定要退回选中的记录吗?");
		addI18n( "commons.close", "Close", "关闭");
		addI18n( "commons.closeConfirm", "Are you sure close the selected record?", "你确定要关闭选中的记录吗?");
		addI18n( "commons.view", "View", "查看");
		addI18n( "commons.pagingInfo", "Display Record{0} - {1},Total{2}", "显示记录{0} - {1},总数{2}");
		addI18n( "commons.main", "Main", "主面板");
		addI18n( "commons.closeTab", "Close", "关闭");
		addI18n( "commons.closeOtherTabs", "Close Others", "关闭其它");
		addI18n( "commons.addToCarSucess", "Add To Car Sucessfully", "已成功加入篮!");
		addI18n( "commons.addToMatchSucess", "Add To Match Sucessfully", "已成功加入匹配!");
		addI18n( "commons.pleaseSelectRecord", "Please Select Record", "请选择记录!");
		addI18n( "commons.yes", "Y", "Y");
		addI18n( "commons.no", "N", "N");
		addI18n( "commons.noMatch", "No Matched Data", "没有匹配数据");
		addI18n( "commons.newTab", "New Tab", "标签页");
		addI18n( "commons.confirm", "Confirm", "确认");
		
		// error information
		addI18n( "error.numeric", "Invalid number format", "无效的数字格式");
		addI18n( "error.required", "Required", "必填项");
		addI18n( "error.format", "Error format", "格式错误");
		addI18n( "error.fixError", "Please fix input error", "请修正错误的输入");
		
		addI18n( "errors.system", "Verify failure\n{0}", "系统校验错误\n{0}");
		addI18n( "errors.missId", "Please provide the \"Id\" value", "请输入ID");
		addI18n( "errors.missParameter", "Please provide the parameter '{0}'", "请输入参数'{0}'");
		addI18n( "errors.duplicate", "\"{0}\" is duplicated", "\"{0}\"重复");
		addI18n( "errors.required", "\"{0}\" is required", "\"{0}\" 是必填的");
		addI18n( "errors.requiredstring", "\"{0}\" is required string", "\"{0}\" 是必填的字符串");
		addI18n( "errors.requiredSelect", "Please select {0}", "请选择{0}");
		addI18n( "errors.maxlength", "The length of \"{0}\" can not be more than {1}", "\"{0}\" 的最大长度不能超过 {1}");
		addI18n( "errors.date", "\"{0}\" is invalid date format(Example:{1})", "\"{0}\" 是无效的日期类型(示例:{1})");
		addI18n( "errors.number", "\"{0}\" is invalid number format", "\"{0}\" 是无效的数字格式");
		addI18n( "errors.excelRowColumn", "The data of row \"{0}\" column \"{1}\" is wrong", "行\"{0}\"列\"{1}\"的数据有错误");
		addI18n( "errors.excelRowColumn.toolong", "The data of row \"{0}\" column \"{1}\" is too long", "行\"{0}\"列\"{1}\"的数据太长");
		
		addI18n( "errors.db.23000", "The object you deleted refrenced by the other business", "发现其它业务使用该条数据，请先删除引用它的业务数据");		// a foreign key constraint
		addI18n( "errors.db.42S22", "Invalid column name ({0})", "无效的列名 ({0})");
		addI18n( "errors.db.42S02", "{0}", "{0}");
		addI18n( "errors.db.22001", "Too long data found", "发现太长的数据");
		addI18n( "errors.reference", "The object you deleted refrenced by the other business: {0}", "发现其它业务使用该条数据，请先删除引用它的业务数据: {0}");
		
		// work flow - error
		addI18n( "errors.workflow.phase.userHasNoPrivilege", "the users of phase :{0} has no privilege of the order ：{1}!", "审批阶段:{0}中定义的用户没有订单权限：{1}!");
		addI18n( "errors.workflow.phase.usersNotEnough", "the valid users of phase :{0} to order number : {1} is {2} ,but the phase need {3} users,please check!", "审批阶段:{0} 对应的订单：{1} 中的有权限的审批用户数是：{2} 但是该阶段需要的用户数是：{3}!");
		addI18n( "errors.workflow.phase.hasNoUsers", "the phase :{0} has not defined users!", "审批阶段:{0} 没有定义审批用户!");
		addI18n( "errors.workflow.condition.expressionError", "expression of condition has error ,please check!", "条件表达式有错误，请检查!");
		addI18n( "errors.workflow.entity.dealed", "the entity :{0} has been dealed!", "实体:{0} 已经处理!");
		addI18n( "errors.workflow.accept.cannt", "the  entity:{0} cannt accept,only refer status can deal!", "实体:{0} 不能审批，只有提交状态的实体可以审批!");
		addI18n( "errors.workflow.accept.not.me", "the  entity:{0} cannt accept,for it is not your turn accept!", "实体:{0} 还没到你审批!");
		addI18n( "errors.workflow.accept.statusIsNull", "the order status cannt allow null!", "审批状态不能为空!");
		
		// user login
		addI18n( "errors.pageUndefined", "Page is not defined", "页面未定义");
		addI18n( "errors.nameOrPassword", "Invalid User Name Or Password", "无效的用户名或密码");
		addI18n( "errors.loginFrequent", "Login frequently in one day", "账号登陆频繁，临时锁定");
		addI18n( "errors.ipLoginFrequent", "IP Login frequently", "同一IP切换用户过多，临时锁定");
		addI18n( "errors.missEmail", "User email doesn't configurate, please contact the administrator to reset the password",
					"用户邮箱未配置,请联系管理员重置密码");
		addI18n( "commons.changePassword", "Change Password", "修改密码");
		addI18n( "user.changePassword.success", "Change Password Successfully", "修改密码成功");
		addI18n( "errors.passwordNotMatched", "Password Not Matched!", "密码不匹配!");
		addI18n( "errors.wrongOldPassword", "Wrong Old Password!", "旧密码不正确!");
		addI18n( "errors.wrongPasswordToken", "Password token expired!", "重置密码的密钥过期!");
		addI18n( "errors.commonPropertyDuplicate", "\"{0}\" is duplicated!", "\"{0}\"重复!");
		addI18n( "errors.commonPropertyNotNull", "{0}Cannt be null!", "{0}不能为空!");
		addI18n( "errors.missModel", "Model Data Error, Model {0} missed!", "模型数据异常,{0}没有被找到!");
		addI18n( "errors.recordPermission", "Can't operate this record", "没有操作这条数据的权限!");

		addI18n( "errors.basetypemodel", "System has not this type : {0} ,please check!", "系统没有该类型 : {0},请检查!");
		addI18n( "errors.missPermission", "Please configure the page permision firstly (${0})", "请先配置\"{0}\"的页面权限");
		
		// license
		addI18n("errors.maxEnableUser", "Only enable ${0} user login at the same", "系统最多可允许${0}人同时使用");
		addI18n("error.licenseExpired", "License expired", "序列号已经过期");
		
		// privilege
		addI18n("privilege.others", "Other Permission", "杂项权限");
		addI18n("privilege.applyTemlateSuccess", "Apply template successfully", "应用模板成功");
		addI18n("model.espirit.privilege.selectBlank", "Not Selected", "未选择内容");
		addI18n("model.espirit.privilege.selectUser", "User", "用户");
		addI18n("model.espirit.privilege.selectBizDepart", "Business Department", "业务部门");
		addI18n("model.espirit.privilege.selectLeaderBizDepart", "Superior Business Department", "上下级业务部门");
		addI18n("model.espirit.privilege.selectOrg", "Organization", "组织");
		
		// taglib information
		addI18n("tag.name", "Name", "属性名");
		addI18n("tag.ctnName", "Name", "名称");
		addI18n("tag.id", "ID", "ID");
		addI18n("tag.colspan", "Column Span", "所占列数");
		addI18n("tag.clazz", "Class", "样式Class");
		addI18n("tag.type", "Type", "类型");
		addI18n("tag.style", "Style", "样式");
		addI18n("tag.label", "Label", "Label");
		addI18n("tag.cnlabel", "Chinese Label", "中文Label");
		addI18n("tag.enlabel", "English Label", "英文Label");
		addI18n("tag.value", "Value", "值");
		addI18n("tag.defaultValue", "Default Value", "默认值");
		addI18n("tag.showRange", "Show Date Range", "显示日期范围");
		addI18n("tag.showDate", "Show Date Icon", "显示日期图标");
		addI18n("tag.required", "Required", "必填项");
		addI18n("tag.width", "Input Width", "输入框宽度");
		addI18n("tag.show", "Show", "显示");
		addI18n("tag.textModel", "Text Model", "文本模式");
		addI18n("tag.model", "Model Name", "模型名称");
		addI18n("tag.property", "Property", "Property");
		addI18n("tag.height", "Height", "高度");
		addI18n("tag.tagName", "Tag Name", "Tag名");
		addI18n("tag.mask", "Validation Rule(Regex)", "校验规则(Regex)");
		
		// price
		addI18n("tag.currency", "Currency Property Name", "货币属性名");
		// container
		addI18n("tag.labelWidth", "Label Width of Element", "容器内的Label宽");
		addI18n("tag.itemWidth", "Item Width of Element", "容器内的列宽");
		addI18n("tag.columnCount", "Table Column Count", "容器内的列数");
		addI18n("tag.bgImage", "Backgroud Image", "背景图片");
		addI18n("tag.vertical", "Vertical Layout", "竖向布局");
		
		// tabs
		addI18n("tag.labels", "Labels", "标签(数组)");
		addI18n("tag.links", "Label Links", "标签链接(数组)");
		addI18n("tag.selected", "Default Selected Tab Index", "缺省选中的标签(Index)");
		addI18n("tag.enableClose", "Enable Close", "允许关闭标签");
		addI18n("tag.cache", "Enable Cache Tab", "允许缓存Tab页");
		// checkbox
		addI18n("tag.collection", "Collections(Data Source)", "Collection数据源");
		addI18n("tag.fieldValue", "Field Value", "选中后的字段值");
		// include
		addI18n("tag.url", "URL", "URL");
		// pageinfo
		addI18n("tag.paginationClazz", "Pagination Class", "分页样式(Class)");
		addI18n("tag.path", "Pagination Path", "分页路径");
		addI18n("tag.sort", "Sort Field", "默认排序字段");
		addI18n("tag.dir", "Sort Direct", "默认排序方向");
		addI18n("tag.rowClickLinks", "Row Links", "行点击链接（数组）");
		addI18n("tag.dblclick", "Enable Double Click", "激活双击事件");
		// button
		addI18n("tag.checkPermission", "Enable Permission Check", "激活权限检查");
		addI18n("tag.onclick", "Click Event", "点击事件");
		// enumselect
		addI18n("tag.enumClass", "Enum Class", "Enum类名");
		// combobox
		addI18n("tag.addBlankItem", "Add 'Please Select'", "显示'请选择'");
		addI18n("tag.addUrl", "URL For Adding", "新增界面的链接");
		addI18n("tag.initData", "Initial Data", "初始数据(数组)");
		addI18n("tag.onselect", "Select Event", "选中(select)事件");
		addI18n("tag.showAddLink", "Show Add Link", "显示新增链接");
		addI18n("tag.labelProperty", "Display Property", "显示Property");
		addI18n("tag.exProperty", "Extra Property(, as separator)", "扩展Property(,分隔)");
		addI18n("tag.labelValue", "Display Value", "显示值");
		addI18n("tag.enableFreeText", "Enable Free Text", "可自由输入");
		addI18n("tag.showMoreIcon", "Show Down Icon", "显示下拉图标");
		addI18n("tag.enableDynamicName", "Enable auto name", "允许自动命名");
		addI18n("tag.enableInitData", "Enable init dropdown data", "加载初始下拉数据");
		addI18n("tag.isSelectBlankItem", "Show 'Please select'", "显示'请选择'");
		addI18n("tag.labelName", "Display Name", "显示名");
		// TODO: more tags
		
		addI18n( "xwork.default.invalid.fieldvalue", "Invalid field value for field \"{0}\"", "错误的数据类型:\"{0}\"");
		addI18n( "generic.noResult", "No matched result found", "没有匹配的记录");

		
		addI18n( "login.forgotPassword", "Forgot your password", "忘记密码");
		addI18n( "header.menu.searchPartItem", "Search part item", "物料信息查询");
		
		addI18n( "profileSearch.searchName", "Search name", "查找名称");
		addI18n( "profileSearch.search", "Profile Search", "高级查询");

		addI18n( "pageinfo.info", "Total record size is {0}, current page is {1} / {2}", "总共有{0}条记录, 第 {1} / {2}页");
		addI18n( "pageinfo.first", "|<", "|<");
		addI18n( "pageinfo.previous", "<", "<");
		addI18n( "pageinfo.next", ">", ">");
		addI18n( "pageinfo.last", ">|", ">|");
		addI18n( "pageinfo.search", "GO", "GO");
		addI18n( "pageinfo.resetCondition", "Create filter with this search", "重置查询条件");
		
		addI18n( "pageinfo.noData", "No Data Found", "没有相关数据");
		addI18n( "pageinfo.page", "Page", "第");
		addI18n( "pageinfo.pageNo", " ", "页");
		addI18n( "pageinfo.total", "Total", "总数");
		addI18n( "pageinfo.advanceSearch", "Advance Search", "高级搜索");
		addI18n( "pageinfo.advanceSearch.tip", "Expression Tip", "辅助提示");
		addI18n( "pageinfo.advanceSearch.contain", "Has the words", "包含");
		addI18n( "pageinfo.advanceSearch.notContain", "Does not have", "不包含");
		addI18n( "pageinfo.advanceSearch.from", "From", "大于");
		addI18n( "pageinfo.advanceSearch.to", "To", "小于");
		
		addI18n( "button.menu.range", "Within", "范围");
		addI18n( "button.menu.of", "of", "内");
		addI18n( "button.menu.to", "to", "至");
		addI18n( "button.menu.0day", " ", " ");
		addI18n( "button.menu.1day", "1 day", "一天");
		addI18n( "button.menu.3day", "3 days", "三天");
		addI18n( "button.menu.1week", "1 week", "一周");
		addI18n( "button.menu.2weeks", "2 weeks", "二周");
		addI18n( "button.menu.1month", "1 month", "一个月");
		addI18n( "button.menu.2months", "2 months", "二个月");
		addI18n( "button.menu.6months", "6 months", "半年");
		addI18n( "button.menu.1year", "1 year", "一年");
		
		addI18n( "model.espirit.department.newDepart", "New Department", "新部门");
		addI18n( "action.getAccountInfo", "View Contacter Info", "查看联系人");
		
		addI18n( "action.showHomepage", "Show Product Book", "浏览产品目录");
		
		addI18n( "model.espirit.eap.sa.user.template", "Template", "模板");
		addI18n( "model.espirit.eap.sa.user.fieldPermission", "Field Permission", "字段权限");
		addI18n( "model.espirit.eap.sa.user.modelFieldPermission", "Model Field Permission", "模型字段权限");
		
		addI18n( "action.updatePage", "Page Setting", "设置页面");
		addI18n( "model.espirit.eap.manager.event.custOdrNbr", "Cust OrdNbr", "原始合同号");

		addI18n( "model.espirit.logistics.inventory.partItem.mfrNumber", "Mfr Number", "编码");
		
		// Page
		addI18n( "action.restore", "Restore", "恢复");
		addI18n( "action.newPage", "New Page", "新页面");
		addI18n( "action.getLayout", "Show Related", "查看相关");
		addI18n( "action.others", "Others Priviles", "杂项权限");
		
		addI18n("model.espirit.eap.pagelayout.page.model", "Page Model", "页面模型");
		addI18n("model.espirit.eap.pagelayout.page.element", "Element", "元素");
		addI18n("model.espirit.eap.pagelayout.page.button", "Button", "按钮");
		addI18n("model.espirit.eap.pagelayout.page.standard", "Standard", "通用");
		addI18n("model.espirit.eap.pagelayout.page.extension", "Extension", "扩展");
		addI18n("model.espirit.eap.pagelayout.page.template", "Template", "模板");
		addI18n("model.espirit.eap.pagelayout.page.newElement", "New Element", "新元素");
		addI18n("model.espirit.eap.pagelayout.page.newContainer", "New Container", "新分块");
		addI18n("model.espirit.eap.pagelayout.page.newPageinfo", "New List Grid", "新显示列表");
		addI18n("model.espirit.eap.pagelayout.page.newDatagrid", "New Input Grid", "新输入列表");
		addI18n("model.espirit.eap.pagelayout.page.newButton", "New Button", "新按钮");
		addI18n("model.espirit.eap.pagelayout.page.pageDef", "Page Definition", "自定义页面");
		addI18n("model.espirit.eap.pagelayout.page.dsSetting", "Datasource Setting", "数据源设置");
		addI18n("model.espirit.eap.pagelayout.page.property", "Property", "属性值");
		addI18n("model.espirit.eap.pagelayout.page.labelProperty", "Label Property", "显示值");
		addI18n("model.espirit.eap.pagelayout.page.parentProperty", "Parent Property", "父级属性值");
		addI18n("model.espirit.eap.pagelayout.page.updateProperty", "Update Property Successfully!", "修改属性成功!");
		addI18n("model.espirit.eap.pagelayout.page.confirmModelChange", "Confirm change the DB structure", "DB修改确认");
		addI18n("model.espirit.eap.pagelayout.page.modelField", "Field", "字段");
		
		addI18n("model.espirit.eap.manager.menu.subpath", "Page Sub Page", "菜单子页面");
		addI18n("model.espirit.eap.manager.menu.menuDef", "Menu Definition", "自定义菜单");
		addI18n("model.espirit.eap.manager.menu.path", "Path", "路径");
		
		addI18n("page.notDefinition", "Page is not definited", "页面未定义");
		addI18n("page.newOperation", "New Operation Name", "业务名称");
		addI18n("button.editor.switch2ftl", "Switch to FTL Editor", "切换至代码编辑器");
		addI18n("button.editor.switch2html", "Switch to HTML Editor", "切换至HTML编辑器");
		
		// Menu
		addI18n("menu.commonLink", "Common Link", "常用链接");
		addI18n("menu.user", "User", "用户");
		
		// SchedulerTask
		addI18n("errors.invalidCommand", "Invalid command line", "无效的命令行");
		addI18n("errors.schedulerIsRunning", "Scheduler '{0}' is Running", "任务计划'{0}'已经在执行中");
	}
}
